package com.xie.service;

import com.xie.dao.ShoukeMapper;
import com.xie.pojo.Shouke;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShoukeServiceImpl implements ShoukeService {

    private ShoukeMapper shoukeMapper;
    public void setShoukeMapper(ShoukeMapper shoukeMapper) {
        this.shoukeMapper = shoukeMapper;
    }

    public int addShouke(Shouke shouke) {
        return shoukeMapper.addShouke(shouke);
    }

    public List<Shouke> queryAllShouke() {
        return shoukeMapper.queryAllShouke();
    }

    public int deleteShouke(String classname) {
        return shoukeMapper.deleteShouke(classname);
    }

    public int updateShouke(Shouke shouke) {
        return shoukeMapper.updateShouke(shouke);
    }

    public Shouke queryShouke(String classname) {
        return shoukeMapper.queryShouke(classname);
    }
}
